//
// Created by fjy on 2021/12/15.
//

#include <ros/ros.h>
#include "tools/file_manager.hpp"
#include "glog/logging.h"
#include "DrivableSeg.h"
#include "DrivableSegUtility.h"

using namespace ObstacleCluster;
int main(int argc, char *argv[]) {

    google::InitGoogleLogging(argv[0]);
    FLAGS_log_dir = (string)WORK_SPACE_PATH + "/Log";
    FLAGS_alsologtostderr = true;
    FLAGS_colorlogtostderr = true;
    FLAGS_log_prefix = true;
    FLAGS_logbufsecs = 0;
    FileManager::CreateDirectory(FLAGS_log_dir);

    ros::init(argc, argv, "ObstacleCluster_node");
    ros::NodeHandle nh;

    std::shared_ptr<DrivableSeg> matching_flow_ptr= std::make_shared<DrivableSeg>(nh);

    ros::Rate rate(100);
    while (ros::ok()) {
        ros::spinOnce();
    }

    return 0;
}